<?php


namespace app\common\model;

class DistributionSetting extends BaseModel{

    protected $name = 'distribution_setting';

    protected $hidden = ['create_time','update_time'];

    /**
     * 获取配置详情
     */
    public static function getItem($dealer_type, $wxapp_id = null){

        $where['dealer_type'] = $dealer_type;
        $where['wxapp_id']=$wxapp_id;
        $data = static::get($where);

        return $data;
    }
}